diff --git a/django/db/migrations/operations/models.py b/django/db/migrations/operations/models.py
index 982816be3a..84b59e3d93 100644
--- a/django/db/migrations/operations/models.py
+++ b/django/db/migrations/operations/models.py
@@ -317,7 +317,12 @@ class RenameModel(ModelOperation):
         state.rename_model(app_label, self.old_name, self.new_name)
 
     def database_forwards(self, app_label, schema_editor, from_state, to_state):
+        # Get the new model state
         new_model = to_state.apps.get_model(app_label, self.new_name)
+        # Check if db_table is set and if so, return early (noop)
+        if new_model._meta.db_table != new_model._meta.original_attrs['db_table']:
+            return
+        # Existing operations follow...
         if self.allow_migrate_model(schema_editor.connection.alias, new_model):
             old_model = from_state.apps.get_model(app_label, self.old_name)
             # Move the main table
@@ -368,6 +373,12 @@ class RenameModel(ModelOperation):
                 )
 
     def database_backwards(self, app_label, schema_editor, from_state, to_state):
+        # Get the old model state
+        old_model = from_state.apps.get_model(app_label, self.old_name)
+        # Check if db_table is set and if so, return early (noop)
+        if old_model._meta.db_table != old_model._meta.original_attrs['db_table']:
+            return
+        # Existing operations follow...
         self.new_name_lower, self.old_name_lower = self.old_name_lower, self.new_name_lower
         self.new_name, self.old_name = self.old_name, self.new_name
 
